package com.leenleda.ips.entity;


import com.leenleda.ips.util.Utils;

public class BaseEntity {
    @Deprecated
    private String serviceIp;

    @Deprecated
    private String deviceMac;
    private String packageName;
    private String homeActivity;
    private int versionCode;
    private long createTime;

    public BaseEntity() {
        createTime = System.currentTimeMillis();
    }

    @Deprecated
    public String getDeviceMac() {
        return Utils.getStringValue(deviceMac);
    }

    public String getServiceIp() {
        return Utils.getStringValue(serviceIp);
    }

    public void setServiceIp(String serviceIp) {
        this.serviceIp = serviceIp;
    }

    public String getPackageName() {
        return Utils.getStringValue(packageName);
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getHomeActivity() {
        return Utils.getStringValue(homeActivity);
    }

    public void setHomeActivity(String homeActivity) {
        this.homeActivity = homeActivity;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "BaseEntity{" +
                ", serviceIp='" + serviceIp + '\'' +
                ", deviceMac='" + deviceMac + '\'' +
                ", packageName='" + packageName + '\'' +
                ", homeActivity='" + homeActivity + '\'' +
                ", versionCode=" + versionCode +
                ", createTime=" + createTime +
                '}';
    }
}
